import { defineStore } from "pinia";
import { ref } from 'vue';

export const useFloorStore = defineStore('floorStore',() => {
    const activeIndex = ref(-1);
    const itemIndex = ref(-1);


    const setActive = (val) => {
        activeIndex.value = val
    }

    const setItem = (val) => {
        itemIndex.value = val
    }


    return {
        activeIndex,
        itemIndex,
        setActive,
        setItem
    }
})